From: Luca Bacci Date: Wed, 29 Mar 2023 15:52:46 +0000 (+0200) Subject: OLE2 DND: Check if move is supported X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2^2~13^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=71fcbce0d7569ffd1483eacb0ac58fe2c72d703c;p=gtk%2B3.0.git OLE2 DND: Check if move is supported --- diff --git a/gdk/win32/gdkdnd-win32.c b/gdk/win32/gdkdnd-win32.c index b968294ba9..164a7f5e6a 100644 --- a/gdk/win32/gdkdnd-win32.c +++ b/gdk/win32/gdkdnd-win32.c @@ -2152,7 +2152,9 @@ _gdk_win32_dnd_do_dragdrop (void) g_strdup_printf ("%#.8lx", hr)))))); /* Delete dnd selection after successful move */ - if (hr == DRAGDROP_S_DROP && dwEffect == DROPEFFECT_MOVE) + if (hr == DRAGDROP_S_DROP && + dwEffect == DROPEFFECT_MOVE && + (drag_ctx->actions & GDK_ACTION_MOVE)) { GdkWin32Selection *win32_sel = _gdk_win32_selection_get (); GdkEvent tmp_event;